package adv2;

public class Student2 {
	private String name;
	private String idcard;
	private int age;
	Sex sex;

	public Student2(String name, String idcard, int age, Sex sex) {
		super();
		this.name = name;
		this.idcard = idcard;
		this.age = age;
		this.sex = sex;
	}

	public Student2() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Sex getSex() {
		return sex;
	}

	public void setSex(Sex sex) {
		this.sex = sex;
	}

	@Override
	public String toString() {
		return "Student2 [name=" + name + ", idcard=" + idcard + ", age=" + age
				+ ", sex=" + sex + "]";
	}
}
